import Api from "../apis/Apis";
import Http from "../../utils/http";

const list = (pageiIdex) => {
    return Http.get(Api.Company.list+ pageiIdex);
}

const byId = (id) => {
    return Http.get(Api.Company.byId + id);
}

const update = (data) => {
    return Http.post(Api.Company.update, data);
}

const create = (data) => {
    return Http.post(Api.Company.create, data);
}

const simpleList = () => {
    return Http.get(Api.Company.simpleList);
}



const CompanyService = {
    list,
    byId,
    update,
    create,
    simpleList
}

export default CompanyService;